package com.liuxvru.project.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import java.io.Serializable;
import com.liuxvru.common.annotation.Excel;
import com.liuxvru.common.core.domain.BaseEntity;

/**
 * 缺陷对象 pro_flaw
 *
 * @author liuxvru
 * @date 2025-04-17
 */
@Data
@TableName(value = "pro_flaw")
public class Flaw extends BaseEntity implements Serializable
{
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /** 主键 */
    @TableId(value = "flaw_id", type = IdType.AUTO)
    private Long flawId;

    /** 标题 */
    @Excel(name = "标题")
    @TableField(value = "title")
    private String title;

    /** 描述 */
    @Excel(name = "描述")
    @TableField(value = "description")
    private String description;

    /** 项目id */
    @Excel(name = "项目id")
    @TableField(value = "project_id")
    private Long projectId;

    /** 项目名称 */
    @Excel(name = "项目名称")
    @TableField(value = "project_name")
    private String projectName;

    /** 状态 */
    @Excel(name = "状态")
    @TableField(value = "status")
    private String status;

    /** 故事点数 */
    @Excel(name = "故事点数")
    @TableField(value = "story_points")
    private Long storyPoints;

    /** 优先级 */
    @Excel(name = "优先级")
    @TableField(value = "priority")
    private String priority;

    /** 结果 */
    @Excel(name = "结果")
    @TableField(value = "outcome")
    private String outcome;

    /** 测试计划ID */
    @Excel(name = "测试计划ID")
    @TableField(value = "test_plan_id")
    private Long testPlanId;

    /** 测试ID */
    @Excel(name = "测试ID")
    @TableField(value = "test_id")
    private Long testId;

    /** 工作项ID */
    @Excel(name = "工作项ID")
    @TableField(value = "work_item_id")
    private Long workItemId;

    /** 负责人ID */
    @Excel(name = "负责人ID")
    @TableField(value = "responsible_id")
    private Long responsibleId;

    /** 严重程度 */
    @Excel(name = "严重程度")
    @TableField(value = "severity")
    private String severity;

    /** 缺陷类型 */
    @Excel(name = "缺陷类型")
    @TableField(value = "defect_class")
    private String defectClass;

    /** 重现概率 */
    @Excel(name = "重现概率")
    @TableField(value = "recurrence_probability")
    private String recurrenceProbability;

    /** 原因分析 */
    @Excel(name = "原因分析")
    @TableField(value = "cause_analysis")
    private String causeAnalysis;

    /** 解决方案 */
    @Excel(name = "解决方案")
    @TableField(value = "solution")
    private String solution;

    /** 重现步骤 */
    @Excel(name = "重现步骤")
    @TableField(value = "reproduction_step")
    private String reproductionStep;

    /** 预估工时 */
    @Excel(name = "预估工时")
    @TableField(value = "estimated_working_hours")
    private Long estimatedWorkingHours;

    /** 登记工时 */
    @Excel(name = "登记工时")
    @TableField(value = "register_working_hours")
    private Long registerWorkingHours;

    /** 剩余工时 */
    @Excel(name = "剩余工时")
    @TableField(value = "surplus_working_hours")
    private Long surplusWorkingHours;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    @TableField(value = "created_at")
    private Date createdAt;

    /** 创建人ID */
    @Excel(name = "创建人ID")
    @TableField(value = "created_by")
    private Long createdBy;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    @TableField(value = "updated_at")
    private Date updatedAt;

    /** 更新人ID */
    @Excel(name = "更新人ID")
    @TableField(value = "updated_by")
    private Long updatedBy;


}
